package com.chushouya.manager.dto.admin.article;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Set;

@ApiModel("批量修改文章所属分类")
@Data
public class ArticleChangeCatDTO {

    @ApiModelProperty("文章id列表")
    @NotEmpty(message = "请选择文章")
    private Set<Long> categoryIds;

    @ApiModelProperty("文章分类id")
    @NotNull(message = "请选择文章分类id")
    private Long catId;

}
